package swag

import (
	"github.com/gin-gonic/gin"
	swaggerfiles "github.com/swaggo/files"
	ginSwagger "github.com/swaggo/gin-swagger"
	docs "zhanyan/docs"
)

// InitSwagger 用于初始化测试文档
func InitSwagger(r *gin.Engine) {
	docs.SwaggerInfo.Title = "展颜文档的测试"
	docs.SwaggerInfo.Description = "This is a simple sample of the zhanyan"
	docs.SwaggerInfo.Version = "1.0"
	docs.SwaggerInfo.Host = "localhost:8081"
	docs.SwaggerInfo.Schemes = []string{"http", "https"}
	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
}
